<?php namespace system\model;
use hdphp\Model\Model;
class Keyword extends Model{
//    表
    protected $table = "keywords";

//    自动验证
    protected $validate = [
        [ 'keyword', 'required', '内容不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ],
        [ 'module', 'required', '模块不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ],
    ];

}